package com.woniuxy.mapper;


import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.*;

import com.woniuxy.entity.Log;



import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.woniuxy.entity.Log;

@Mapper
public interface LogMapper {
	
	@Select("select * from log")
	public List<Log> findLog();

	@Insert("insert into perms values(default,#{u_id},#{content},#{object},#{time})")
	public int addLog(int u_id,String content,String object,Date time);

	@Delete("delete from perms where l_id=#{l_id}")
	public int delLog(int l_id);
	
	
	@Insert("insert into log values(default,#{u_id},#{content},#{object},#{time})")
	public int addorderLogbuyer(Log log);
	
	@Select("select * from log  where  u_id = #{u_id}")
	public List<Log> findAllByuid(int uid);
	


}
